from rest_framework import serializers
from home.models import Nav,Banner

class NavSerializer(serializers.ModelSerializer):
    class Meta:
        model = Nav
        fields = ["name", "link", "is_http"]


class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model = Banner
        fields = ["image","name", "link", "is_http"]